from django.db import models


# Create your models here.
class Hobby(models.Model):
    name = models.CharField(max_length=32)

    def __str__(self):  # 这样显示的为对象，更改显示方法为name
        return self.name
